package com.hongning.railway.entity.resbean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Author: zhangjing
 * DATA:2019-09-06 16:38
 * DESC:
 * email:zhangjingworkmol@163.com
 */
public class ResKaoHeBean implements Parcelable {


    /**
     * addTime : 1567684546000
     * appFlag : 01
     * details : [{"children":[{"id":"2","name":"1","totleScore":1}],"id":"1","name":"1","totleScore":1}]
     * endTime : 1567598140000
     * examName : bbb
     * examType : 01
     * ext3 : 2
     * groupId : 101001
     * groupName : 机关第一党支部
     * id : 2
     * pcFlag : 01
     * startTime : 1567425334000
     * totleScore : 1
     */

    private long addTime;
    private String appFlag;
    private String details;
    private long endTime;
    private String examName;
    private String examType;
    private String ext3;
    private String groupId;
    private String groupName;
    private String id;
    private String pcFlag;
    private long startTime;
    private int totleScore;

    public long getAddTime() {
        return addTime;
    }

    public void setAddTime(long addTime) {
        this.addTime = addTime;
    }

    public String getAppFlag() {
        return appFlag;
    }

    public void setAppFlag(String appFlag) {
        this.appFlag = appFlag;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public String getExamName() {
        return examName;
    }

    public void setExamName(String examName) {
        this.examName = examName;
    }

    public String getExamType() {
        return examType;
    }

    public void setExamType(String examType) {
        this.examType = examType;
    }

    public String getExt3() {
        return ext3;
    }

    public void setExt3(String ext3) {
        this.ext3 = ext3;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPcFlag() {
        return pcFlag;
    }

    public void setPcFlag(String pcFlag) {
        this.pcFlag = pcFlag;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public int getTotleScore() {
        return totleScore;
    }

    public void setTotleScore(int totleScore) {
        this.totleScore = totleScore;
    }


    public static class DataBean{

        /**
         * children : [{"id":"2","name":"1","totleScore":1}]
         * id : 1
         * name : 1
         * totleScore : 1
         */

        private String id;
        private String name;
        private int totleScore;
        private List<ChildrenBean> children;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getTotleScore() {
            return totleScore;
        }

        public void setTotleScore(int totleScore) {
            this.totleScore = totleScore;
        }

        public List<ChildrenBean> getChildren() {
            return children;
        }

        public void setChildren(List<ChildrenBean> children) {
            this.children = children;
        }

        public static class ChildrenBean {
            /**
             * id : 2
             * name : 1
             * totleScore : 1
             */

            private String id;
            private String name;
            private int totleScore;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getTotleScore() {
                return totleScore;
            }

            public void setTotleScore(int totleScore) {
                this.totleScore = totleScore;
            }
        }
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.addTime);
        dest.writeString(this.appFlag);
        dest.writeString(this.details);
        dest.writeLong(this.endTime);
        dest.writeString(this.examName);
        dest.writeString(this.examType);
        dest.writeString(this.ext3);
        dest.writeString(this.groupId);
        dest.writeString(this.groupName);
        dest.writeString(this.id);
        dest.writeString(this.pcFlag);
        dest.writeLong(this.startTime);
        dest.writeInt(this.totleScore);
    }

    public ResKaoHeBean() {
    }

    protected ResKaoHeBean(Parcel in) {
        this.addTime = in.readLong();
        this.appFlag = in.readString();
        this.details = in.readString();
        this.endTime = in.readLong();
        this.examName = in.readString();
        this.examType = in.readString();
        this.ext3 = in.readString();
        this.groupId = in.readString();
        this.groupName = in.readString();
        this.id = in.readString();
        this.pcFlag = in.readString();
        this.startTime = in.readLong();
        this.totleScore = in.readInt();
    }

    public static final Parcelable.Creator<ResKaoHeBean> CREATOR = new Parcelable.Creator<ResKaoHeBean>() {
        @Override
        public ResKaoHeBean createFromParcel(Parcel source) {
            return new ResKaoHeBean(source);
        }

        @Override
        public ResKaoHeBean[] newArray(int size) {
            return new ResKaoHeBean[size];
        }
    };
}
